//
//  MHComicCommentTableViewCell.m
//  ManHua
//
//  Created by 江子安 on 15/10/26.
//  Copyright © 2015年 蓝欧科技. All rights reserved.
//

#import "MHComicCommentTableViewCell.h"

@implementation MHComicCommentTableViewCell





- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _photoBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        _photoBtn.frame = CGRectMake(10, 10, 40, 40);
        [self.contentView addSubview:_photoBtn];
        
        _nickBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        _nickBtn.frame = CGRectMake(60, 10, 25, 200);
        [self.contentView addSubview:_nickBtn];
        
        _TypeNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(60, 35, 200, 15)];
        _TypeNameLabel.font = [UIFont systemFontOfSize:10];
        [self.contentView addSubview:_TypeNameLabel];
        
        _dataLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH - 110, 10, 100, 20)];
        _dataLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_dataLabel];
        
        _contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(60, 50, SCREEN_WIDTH - 80, 40)];
        _contentLabel.numberOfLines = 0;
        _contentLabel.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_contentLabel];
        
        
        float YY =  _contentLabel.frame.size.height + _contentLabel.frame.origin.y;
        _likeBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        _likeBtn.frame = CGRectMake(60,YY, 20, 20);
        [self.contentView addSubview:_likeBtn];
        
        _likeCont = [[UILabel alloc]initWithFrame:CGRectMake(80, YY, 30, 20)];
        _likeCont.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_likeCont];
        
        _replyImg = [[UIImageView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH - 80, YY, 20, 20)];
        [self.contentView addSubview:_replyImg];
        
        _replyContLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH - 60 , YY, 40, 20)];
        _replyContLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_replyContLabel];
        
        
        
    }
    return self;
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
